const data= require('../../../../lib/data')
const result = require('../../../../lib/result')
class initialStatus {
   static async send(ctx) {
    const command = Buffer.from([ 0xA0, 0x00]);
    const raw = Buffer.from([0x00, 0x00]);
    ctx.state.socket.write(data.pack(command, raw));
    result.time =  (new Date()).getTime();
    result.succeed = true;
    return result
  }
}

module.exports = initialStatus